package com.dailyblue.java.spring.cloud.example.sentinel.customer.feign.exception;

import com.dailyblue.java.spring.cloud.example.commons.util.JsonResult;
import com.dailyblue.java.spring.cloud.example.commons.util.ResultTool;
import com.dailyblue.java.spring.cloud.example.sentinel.customer.feign.ProductFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ProductFeignHandler implements ProductFeign {
    @Override
    public JsonResult a() {
        return null;
    }

    @Override
    public JsonResult b() {
        return null;
    }

    @Override
    public JsonResult c(Integer index) {
        log.info("调用c方法是出现了错误！");
        return ResultTool.fail();
    }
}
